package com.aspose.cells;

class zcem extends zcdb {
   zcem(Worksheet var1, Workbook var2) {
      this.d = 485;
      this.c = new byte[12];
      double var3 = var1.getCells().getColumns().b();
      int var5 = var2.getWorksheets().H();
      boolean var6 = false;
      int var8;
      if (var3 > 1.0D) {
         var8 = (int)Math.floor(var3 * 256.0D + (double)var5 + 0.5D) & '\uffff';
      } else {
         var8 = (int)Math.floor(var3 * (double)(256 + var5) + 0.5D) & '\uffff';
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var8), 0, this.c, 0, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a((int)var3), 0, this.c, 4, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a((int)var1.getCells().a()), 0, this.c, 6, 2);
      byte var7 = 0;
      if (var1.getCells().a() == 0.0D) {
         var7 = (byte)(var7 | 2);
      }

      this.c[8] = var7;
      this.c[10] = var1.getCells().v();
      this.c[11] = var1.getCells().u();
   }
}
